package src.utils;

public class XYPosition {

	private int x;
	private int y;
		
	public XYPosition(){
		
	}
	
	public XYPosition(int x, int y){
		this.x = x;
		this.y = y;
	}
	
	public int squaredDistanceWith(XYPosition other) {
		return (this.x - other.x) * (this.x - other.x) + (this.y -other.y)*(this.y -other.y);
	}
	
	public int getX() {
		return x;
	}
	
	public int getY() {
		return y;
	}
	
	public String toString() {
		return "("+x+","+y+")";
	}
}